package app.qrcode.browser.hearttoheart.activities

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.os.Message
import app.qrcode.browser.hearttoheart.R

class MainActivity : AppCompatActivity() {
    private val handler:Handler= object:Handler(Looper.getMainLooper()){
        override fun handleMessage(msg: Message) {
            if (isFinishing) {
                return
            }
            val intent = Intent(this@MainActivity, LoginChoiceActivity::class.java)
            startActivity(intent)
        }
    }
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        handler.sendMessageDelayed(Message.obtain(),1000)
    }
}